/**
 * User: Paulo Fournier
 * Date: 20-08-2013
 * Poi category data model
 */

Ext.define('Mobile-app.model.PoiCategory', {
    extend: 'Ext.data.Model',

    config: {
        autoLoad: false,
        fields: [
            //pOICategoriesByGroupId
            {name: 'id', type: 'int', filterable: true},
            {name: 'description', type: 'string', filterable: true}

        ],
        proxy: {
            type: 'ajax',
            url: 'app/php/public/poi.category.request.php',
            reader: {
                type: 'json'
            }
        }
    }

})